#ifndef GAMESTATE_H_
#define GAMESTATE_H_

#include "cocos2d.h"

using namespace cocos2d;

class GameState {
private:
	CCLayer *owner;
	CCLabelTTF *scoreLabel;
	static GameState *instance;
	int scores;
	int lifes;
	CCArray *eggArray;
public:
	void init(CCLayer *layer);
	static GameState* getInstance();
	void increaseScores();
	void decreaseLifes();
	int getScores();
	int getlifes();
	void saveBestScore();
	int getBestScore();
	bool isBestScore();
	void increaseScores(int score);
};

#endif
